package com.people.whx.demo.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Receiver {

    @RabbitListener(queues = "test")
    public void receiveMessage(String message){
        log.info("this is the message received from rabbitmq:"+message);
    }
}
